//
//  影像学报告组单元cell
//  yilutongxing
//
//  Created by T&J on 2017/12/7.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ImageReportArrayDelegate<NSObject>
-(void)sendTitle:(NSString*)title forIndexPath:(NSIndexPath*)indexpath;
-(void)sendDesc:(NSString*)desc forIndexPath:(NSIndexPath*)indexpath;
-(void)sendImgArr:(NSArray*)img_arr forIndexPath:(NSIndexPath*)indexpath;
@end

@interface ImageReportArrayCell : UITableViewCell
@property (strong, nonatomic) IBOutlet UITextField *title_textfield;
@property (strong, nonatomic) IBOutlet UITextView *desc_textview;
@property (strong, nonatomic) IBOutlet UIView *image_bg;
@property (strong, nonatomic) IBOutlet UILabel *desc_placeholder_label;

@property (strong, nonatomic) id<ImageReportArrayDelegate> delegate;
/**
 初始化图片选择器
 @param parentVC 父视图控制器
 */
- (void)setupImagePicker:(UIViewController*)parentVC;
/**
 更新当前cell索引
 @param indexPath 索引值
 */
- (void)refreshIndex:(NSIndexPath*)indexPath;
/**
 用UIImage*数组填充图片
 @param img_arr UIImage*数组
 */
- (void)fillImages:(NSArray*)img_arr;
/**
 用url填充图片
 @param urlStr URL以逗号拼接的字符串
 */
- (void)fillImagesForUrl:(NSString*)urlStr;

/**
 设置影像报告说明文字
 @param desc 说明内容
 */
- (void)setDesc:(NSString*)desc;
@end
